<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <style>

    </style>

    <title>宠物医院</title>
    <link th:href="@{/css/bootstrap.min.css}" rel="stylesheet">
    <link th:href="@{/css/dashboard.css}" rel="stylesheet">
    <link th:href="@{/img/pet2.jpg}" rel="shortcut icon">
</head>
<body>
<!--顶部导航栏-->
<div th:replace="~{comment/comment::topbar}"></div>
<div class="container-fluid">
    <div class="row">
        <!--侧边导航栏-->
        <div th:replace="~{comment/comment::sidebar(active='director/consult.html')}"></div>
        <!--主视图-->
        <main role="main" class="col-md-9 ml-sm-auto col-lg-11 pt-3 px-4">
            <h2>用户建议</h2>
            <a class="btn btn-primary" th:href="@{/collection}">收藏页面</a>
            <div class="table-responsive">
                <table class="table">
                    <thead align="center">
                    <tr>
                        <th>评论ID</th>
                        <th>评论人</th>
                        <th>评语</th>
                        <th>评论时间</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody align="center">
                    <tr th:each="e:${evaluate}">
                        <td th:text="${e.geteId()}"></td>
                        <td th:text="${e.geteName()}"></td>
                        <td th:text="${e.getEvaluate()}"></td>
                        <td th:text="${#dates.format(e.getDate(),'yyyy-MM-dd HH:dd:ss')}"></td>
                        <td>
                            <a class="btn btn-primary" th:href="@{/updateState/}+${e.geteId()}">收藏</a>
                            <a class="btn btn-primary" th:href="@{/deleteEvaluate/}+${e.geteId()}">删除</a>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
        </main>
    </div>
</div>
</body>

</html>